import Typewriter from 'typewriter-effect'

function AAA() {

    const twInit = (typewriter) => {
        typewriter.typeString('你们为什么可以睡那么早的觉？')
            .pauseFor(1000)
            .deleteAll()
            .typeString('不用加班的吗？？？？？？？')
            .pauseFor(1000)
            .deleteChars(5)
            .typeString('可了个大恶！！！！！')
            .start();
    }
    return (
        <div className="Typewriter">
            <Typewriter onInit={twInit} options={{
                wrapperClassName: 'test1',
                cursorClassName: 'test2',
                delay: 75, //打字的速度
                deleteSpeed: 5 // 删除字的速度
            }}/>
        </div>
    );
}

export default AAA;
